<template>
    <div class="formQuery">
        <el-form :inline="true" :model="queryParam" class="demo-form-inline">
        <el-form-item label="机型">
            <el-input size="mini" v-model="queryParam.productCode" placeholder="机型"></el-input>
        </el-form-item>
        <el-form-item label="图号">
            <el-input size="mini" v-model="queryParam.itemCode" placeholder="图号"></el-input>
        </el-form-item>
        <el-form-item label="型号">
            <el-input size="mini" v-model="queryParam.mProductNumber" placeholder="型号"></el-input>
        </el-form-item>
        <el-form-item label="质量编号/件号">
            <el-input size="mini" v-model="queryParam.qualityCode" placeholder="质量编号/件号"></el-input>
        </el-form-item>
        <el-form-item label="架份">
            <el-select size="mini" v-model="queryParam.lotNum" placeholder="请选择几架份">
                <el-option v-for="item in lotNums" :label="item.key" :key="item.value" :value="item.value"></el-option>
            </el-select>
        </el-form-item>
        </el-form>
        <el-button size="mini" type="primary" @click="query">查询</el-button>
        <el-button size="mini" type="primary">重置</el-button>
    </div>
</template>
<script>
export default {
    data() {
      return {
        queryParam: {
          productCode: "",
          itemCode: "",
          mProductNumber:"",
          qualityCode:"",
          lotNum:1
        },
        lotNums:[
            {key:"1架份",value:1},{key:"2架份",value:2},{key:"3架份",value:3},{key:"5架份",value:5}
        ]
      }
    },
    methods: {
        query(){
            this.$bus.$emit("receiveQueryParam",this.queryParam);
        }
    }
  }
</script>